package com.googlecode.maurersmarbles.drawables;

import android.graphics.Canvas;
import android.graphics.Rect;

public abstract class DealerChipDrawable implements Drawable {

	/**
	 * The bounding box the draw the marble in.
	 */
	private Rect boundingBox;

	/**
	 * Creates a new DealerChipDrawable.
	 * @param boundingBox the bounding box to draw the dealer chip in
	 */
	public DealerChipDrawable(Rect boundingBox) {
		this.boundingBox = boundingBox;
	}

	@Override
	public void draw(Canvas canvas) {
		drawDealerChip(canvas, boundingBox.left, boundingBox.top,
				boundingBox.width(), boundingBox.height());
	}

	/**
	 * Draws the dealer chip.
	 * @param canvas the canvas to draw the dealer chip in
	 * @param startX the start x location
	 * @param startY the start y location
	 * @param width the width of the dealer chip
	 * @param height the height of the dealer chip
	 */
	public abstract void drawDealerChip(Canvas canvas, int startX, int startY,
			int width, int height);

}
